<div class="modal fade" id="content_error<?= $error->id ?>" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="false">
    <div class="modal-dialog">
        <form action="<?= route('error\edit') ?>" method="post">
            <div class="modal-content" style="
                 width: 800px;
                 ">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title" id="exampleModalLabel">
                        Chi tiết báo lỗi!!!
                    </h4>

                </div>
                <h5 class="modal-title" id="exampleModalLabel" style="
                    color: #555;
                    ">
                    <table  style=" table-layout: fixed;
                            word-wrap: break-word;

                            " class="table">
                        <thead>
                            <tr>
                                <th width="150"></th>
                                <th ></th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr >
                                <td>  <span  class="glyphicon glyphicon-user"><b> Người báo:  </b></span></td>
                                <td><a href="{{route('thanh-vien-ct',array('id'=>$error->user_id,'slug'=>Str::slug($error->username)))}}"> <?= ucwords($error->username) ?></a></td>
                            </tr>
                            <tr>
                                <td><span class="glyphicon glyphicon-time"> <b>Thời gian:  </b> </span></td>
                                <td> <?= $error->created_at ?></td>
                            </tr>
                            <tr>
                                <td> <span class="glyphicon glyphicon-cloud"><b> Nơi báo lỗi:   </b> </span></td>
                                <td><a href="<?= $error->link ?>"</a><?= $error->title ?></td>
                            </tr>
                            <tr>
                                <td> <span class="glyphicon glyphicon-filter"><b> Loại:   </b> </span></td>
                                <td><?php
                                    switch ($error->type) {
                                        case 'hoi-dap':
                                            echo "Hỏi đáp";
                                            break;
                                        case 'hop-am':
                                            echo "Hợp âm";
                                            break;
                                        case 'bai-giang':
                                            echo "Bài giảng";
                                        case 'tu-dien':
                                            echo "Từ điển";
                                            break;
                                    }
                                    ?>
                                </td>
                            </tr>
                            <tr>
                                <td> <span class="glyphicon glyphicon-list-alt"><b> Nội dung:   </b> </span></td>
                                <td><?= $error->content ?></td>
                            </tr>
                        </tbody>
                    </table>
                    <table  style=" table-layout: fixed;
                            word-wrap: break-word;" class="table">
                        <thead>
                            <tr>
                                <th width="150"></th>
                                <th ></th>
                            </tr>
                        </thead>
                        <tbody>
                        <input type="hidden" name="data[Error][id]" value="<?= $error->id ?>}}"/>
                        <tr>
                            <td> <span class="glyphicon glyphicon-ok"><b> Trạng thái:  </b> </span></td>
                            <td> <?= Form::Select('data[Error][status]', array('new' => 'Mới tạo', 'insolve' => 'Đang xử lý', 'wait' => 'Chờ xử lý', 'solved' => 'Đã xử lý'), $error->status, array('class' => 'form-control', 'style' => 'width:150px')) ?></td>
                        </tr>

                        </tbody>
                    </table>

                </h5>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Đóng</button>
                    <button type="submit" class=" btn btn-primary">Lưu</button>
                </div>
            </div>
        </form>
    </div>
</div>
